import { request } from "../utils/axios"
import { PageListReturnResult } from "../utils/types"

export default {
  pageList (params: any): PageListReturnResult {
    return request({
      url: '/framework/limit/list',
      params
    })
  },
  save (data: any) {
    return request({
      url: '/framework/limit/',
      data,
      method: data.id ? 'PUT' : 'POST'
    })
  },
  delete (id: any) {
    return request({
      url: `/framework/limit/${id}`,
      method: 'DELETE'
    })
  }
}
